// inheritance tests using style "MySubclass.prototype = new MyBaseclass(...)"

function MyBaseClass_1(myId, myConfig) {
   this.id = myId;
   this.config = myConfig;
   this.panel = new Ext.Panel(this.config.panelConfig);
}

MyBaseClass_1.prototype = {
   getId : function() {
      return this.id;
   },

   refresh: function() {}  
};

MyBaseClass_1.prototype.init = function() {
   doIt(this.config);
}


function MySubclass_1(myId, myConfig) {
   this.id = myId;
   this.config = myConfig;
}

MySubclass_1.prototype = new MyBaseClass_1();
MySubclass_1.prototype.constructor = Mysubclass_1;

MySubclass_1.prototype.newMethod = function(args) {
   return args;
}



myapp.MyBaseClass_2 = function(myId, myConfig) {
   this.id = myId;
   this.config = myConfig;
};

myapp.MyBaseClass_2.prototype.getId = function() {
   return this.id;
}

myapp.MySubclass_2 = function(myId, myConfig) {
   this.id = myId;
   this.config = myConfig;
}

myapp.MySubclass_2.prototype = new myapp.MyBaseClass_2;
myapp.MySubclass_2.prototype.constructor = myapp.MySubclass_2;

myapp.MySubclass_2.prototype.refresh = function() {
}




